package cn.lf.dto.api.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel("获取用户的订单详细信息返回类")
public class UserOrderDetailRepDTO {

    @ApiModelProperty("订单id")
    private String orderId;

    @ApiModelProperty("订单编号")
    private String orderNumber;

    @ApiModelProperty("总金额")
    private String totalPay;

    @ApiModelProperty("实际金额")
    private String actualPay;

    @ApiModelProperty("退款金额")
    private String refundPay;

    @ApiModelProperty("店铺id")
    private String shopId;

    @ApiModelProperty("店铺名称")
    private String shopName;

    @ApiModelProperty("买家留言")
    private String buyerMessage;

    @ApiModelProperty("是否已评价")
    private String buyerRate;

    @ApiModelProperty("订单状态中文")
    private String orderStatusStr;

    @ApiModelProperty("商品信息列表")
    private List<ProductInfo> productInfoList;

    @Data
    @ApiModel("商品信息")
    public static class ProductInfo{

        @ApiModelProperty("商品id")
        private String pid;

        @ApiModelProperty("商品图片")
        private String pic;

        @ApiModelProperty("商品名称")
        private String productName;

        @ApiModelProperty("商品数量")
        private String productNumber;

        @ApiModelProperty("商品价格")
        private String productPrice;

    }
}
